package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * @author eason
 * @ClassName: wish
 * @Description: 心愿单定义表
 * @date 2015年3月23日 下午1:00:00
 */
@Entity
@Table(name = "tb_xa_wish")
@ApiModel(value = "心愿单定义表")
public class Wish extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "wishDate,添加心愿的时间（yyyy-MM-dd HH:mm:ss）")
    private String wishDate;
    @ApiModelProperty(value = "心愿内容,心愿内容")
    private String context;

    @ApiModelProperty(value="用户Id,用户Id")
    private Long userId;

    @ApiModelProperty(value="用户名")
    private String userName;
    
    @Column(nullable = true, length = 50)
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(nullable = true, length = 50)
    public String getWishDate() {
        return wishDate;
    }

    public void setWishDate(String wishDate) {
        this.wishDate = wishDate;
    }


    public void setContext(String context) {
        this.context = context;
    }

    @Column(nullable = true, length = 1000, columnDefinition = "MEDIUMTEXT")
    public String getContext() {
        return context;
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}


}
